package com.zxl.grocerymicroservicewechatmeal.repository;

import com.zxl.grocerymicroservicewechatmeal.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author: zxl
 * @Description:
 * @Date: Created in 7:16 2017/11/16
 * @Modified By:
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    /**
     *  查询某个人的订单 分页
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
